import instance from '@/http/index'

//统一管理接口
enum API {
    getCategoryAndNumber_url = '/ov/getCategoryAndNumber',
    getAdminAndNumber_url = '/ov/getAdminAndNumber',
    getLevelAndNumber_url = '/ov/getLevelAndNumber',
    getDayAndNumber_url  = '/ov/getDayAndNumber'
}
// 获取产品类别和总价
export const getCategoryAndNumber = () => {
    return instance.post(API.getCategoryAndNumber_url)
}

// 获取不同角色与数量
export const getAdminAndNumber = () => {
	return instance.post(API.getAdminAndNumber_url)
}

// 获取不同消息等级与数量
export const getLevelAndNumber = () => {
	return instance.post(API.getLevelAndNumber_url)
}

// 返回每天登录人数
export const getDayAndNumber = () => {
	return instance.post(API.getDayAndNumber_url)
}


